//import { localize } from 'vs/nls';
import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions';
//import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';


const commandCreateProject = "project.createProject";
const commandConfigProject = "project.configProject";
const commandPackageProject = "project.buildPackage";
const commandDebugProject = "debug.openView";
const commandRunProject = "workbench.action.tasks.runTask";
const commandBuidProject = "workbench.action.tasks.build";
import * as platform from 'vs/base/common/platform';


MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandCreateProject,
		title: (platform.language == 'zh-cn' ? '创建新的项目' : 'Create New Project')
	},
	order: 1,
	//	when: ContextKeyExpr.has('hasCreateProject')
});
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandConfigProject,
		title: (platform.language == 'zh-cn' ? '配置当前项目' : 'Configure Project')
	},
	order: 2,
	//	when: ContextKeyExpr.has('hasCreateProject')
});
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandBuidProject,
		title: (platform.language == 'zh-cn' ? '构建' : 'Build')
	},
	order: 3,
	//	when: ContextKeyExpr.has('hasCreateProject')
});
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandDebugProject,
		title: (platform.language == 'zh-cn' ? '调试' : 'Debug')
	},
	order: 4,
	//	when: ContextKeyExpr.has('hasCreateProject')
});
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandRunProject,
		title: (platform.language == 'zh-cn' ? '运行' : 'Run')
	},
	order: 5,
	//	when: ContextKeyExpr.equals('hasCreateProject', true)
});
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
	group: '1_project',
	command: {
		id: commandPackageProject,
		title: (platform.language == 'zh-cn' ? '打包' : 'Pack')
	},
	order: 6,
	//	when: ContextKeyExpr.has('hasCreateProject')
});
